Algorithms for Enumerating All Spanning Trees of Undirected and Weighted Graphs
نویسندگان
چکیده
In this paper, we present algorithms for enumeration of spanning trees in undi-rected graphs, with and without weights. The algorithms use a search tree technique to construct a computation tree. The computation tree can be used to output all spanning trees by outputting only relative changes between spanning trees rather than the entire spanning trees themselves. Both the construction of the computation tree and the listing of the trees is shown to require O(N +V +E) operations for the case of undirected graphs without weights. The basic algorithm is based on swapping edges in a fundamental cycle. For the case of weighted graphs (undirected), we show that the nodes of the computation tree of spanning trees can be sorted in increasing order of weight, in O(N log V + V E) time. The spanning trees themselves can be listed in O(NV) time. Here N, V , and E refer respectively to the number of spanning trees, vertices, and edges of the graph.
منابع مشابه
A Study on ‘Number of Spanning Trees’
Char, J. P. , Generation of Trees, Two-Trees and Storage of Master Forests, IEEE Transactions on Circuit Theory, Vol. CT-15, pp. 128-138, 1968. Hakimi, S. L. , On Trees of a Graph and their Generation, Journal of the Franklin Institute, Vol. 272, No. 5, pp. 347-359, 1961. Kapoor, S. and H. Ramesh, Algorithms for Enumerating All Spanning Trees of Undirected and Weighted Graphs, SIAM Journal on C...
متن کاملAn Optimal Algorithm for Scanning All Spanning Trees of Undirected Graphs
Let G be an undirected graph with V vertices and E edges. Many algorithms have been developed for enumerating all spanning trees in G. Most of the early algorithms use a technique called `backtracking'. Recently, several algorithms using a di erent technique have been proposed by Kapoor and Ramesh (1992), Matsui (1993), and Shioura and Tamura (1993). They nd a new spanning tree by exchanging on...
متن کاملE ciently Scanning All Spanning Trees of an Undirected Graph
Let G be an undirected graph with V vertices and E edges. We consider the problem of enumerating all spanning trees of G: In order to explicitly output all spanning trees, the output size is of (NV ), where N is the number of spanning trees. This, however, can be compressed into (N) size. In this paper, we propose a new algorithm for enumerating all spanning trees of G in such compact form. The...
متن کاملEnumerating spanning trees of graphs with an involution
As the extension of the previous work by Ciucu and the present authors (J. Combin. Theory Ser. A 112(2005) 105–116), this paper considers the problem of enumeration of spanning trees of weighted graphs with an involution which allows fixed points. We show that if G is a weighted graph with an involution, then the sum of weights of spanning trees of G can be expressed in terms of the product of ...
متن کاملNUMBER OF SPANNING TREES FOR DIFFERENT PRODUCT GRAPHS
In this paper simple formulae are derived for calculating the number of spanning trees of different product graphs. The products considered in here consists of Cartesian, strong Cartesian, direct, Lexicographic and double graph. For this purpose, the Laplacian matrices of these product graphs are used. Form some of these products simple formulae are derived and whenever direct formulation was n...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید
ثبت ناماگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید
ورودعنوان ژورنال:
- SIAM J. Comput.
دوره 24 شماره
صفحات -
تاریخ انتشار 1995